package com.cybertron.lockdown.spider.domain;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;

/**
 * Created by xiezhouyan on 15-1-10.
 */
@XStreamAlias("target")
public class Target {

    @XStreamAsAttribute
    @XStreamAlias("regex")
    private String regex;

    @XStreamImplicit(itemFieldName = "field")
    private List<Field> fields;

    public List<Field> getFields() {
        return fields;
    }

    public void setFields(List<Field> fields) {
        this.fields = fields;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }
}
